<template>
	<view>
		<u-cell-group>
			<u-cell v-for="item in roomList" :key="item" :title="roomNumber+item" isLink @click="editRoom(item)">
			</u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				roomList: ['101', '102', '201', '202', '301', '302']
			}
		},
		computed: {
			roomNumber() {
				return this.$store.state.house.roomNumber
			}
		},
		methods: {
			editRoom(item) {
				uni.navigateTo({
					url: '/pkg-house/add-room/add-room'
				})
				this.$store.commit('house/setRoomInfo', item)
			}
		}
	}
</script>

<style>

</style>
